home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gxclip2.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.0 KB  |  55 lines

  1. /* Copyright (C) 1993, 1996, 1998, 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gxclip2.h,v 1.2 2000/09/19 19:00:34 lpd Exp $ */
  20. /* Tiled mask clipping device and interface */
  21.  
  22. #ifndef gxclip2_INCLUDED
  23. #  define gxclip2_INCLUDED
  24.  
  25. #include "gxmclip.h"
  26.  
  27. /* The structure for tile clipping is the same as for simple mask clipping. */
  28. typedef gx_device_mask_clip gx_device_tile_clip;
  29. #define st_device_tile_clip st_device_mask_clip
  30. /*
  31.  * We can't just make this macro empty, since it is processed as a top-level
  32.  * declaration and would lead to an extraneous semicolon.  The least damage
  33.  * we can do is make it declare a constant (and not static, since static
  34.  * would lead to a compiler warning about an unreferenced variable).
  35.  */
  36. #define private_st_device_tile_clip() /* in gxclip2.c */\
  37.   const byte gxclip2_dummy = 0
  38.  
  39. /*
  40.  * Initialize a tile clipping device from a mask.
  41.  * We supply an explicit phase.
  42.  */
  43. int tile_clip_initialize(P6(gx_device_tile_clip * cdev,
  44.                 const gx_strip_bitmap * tiles,
  45.                 gx_device * tdev, int px, int py,
  46.                 gs_memory_t *mem));
  47.  
  48. /*
  49.  * Set the phase of the tile -- used in the tiling loop when
  50.  * the tile doesn't simply fill the plane.
  51.  */
  52. void tile_clip_set_phase(P3(gx_device_tile_clip * cdev, int px, int py));
  53.  
  54. #endif /* gxclip2_INCLUDED */
  55.